var webpack = require('webpack');
module.exports = {
  entry: './src/app.js',
  output: {
    path: __dirname + '/build',
    filename: "bundle.js"
  },
  module: {
    rules: [{
      test: /\.js$/,
      exclude: /node_modules/,
      loader: 'babel-loader',
      query: {
        plugins: ['babel-plugin-transform-decorators-legacy'],
        presets: ['es2015', 'react', 'stage-1','stage-2']
      }
    }, {
      test: /\.css$/,
      loader: "style-loader!css-loader"
    }]
  }
};



